package com.wangjiacai.utils.configuration;

import com.wangjiacai.utils.ali.ocr.AliOcrRequest;
import com.wangjiacai.utils.ali.properties.AliOcrProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



@Configuration
@EnableConfigurationProperties({AliOcrProperties.class})
public class AliOcrConfiguration {

    @Bean
    public AliOcrRequest aliOcrRequest(AliOcrProperties aliOcrProperties) {
        AliOcrRequest aliOcrRequest = new AliOcrRequest(aliOcrProperties);
        return aliOcrRequest;
    }

}
